module(..., package.seeall)

-- MQTT_HOST = "47.106.134.96"
-- MQTT_PORT = "1883"
-- MQTT_USER = "lye"
-- MQTT_PASSWORD = "lye123"

-- MQTT_TOPIC2 = "LTYS_Device"
-- MQTT_TOPIC3 = "LTYS_CMD"

ALI_INSTANCEID = "iot-040a0a0k"
ALI_PRODUCTKEY = "gqiceZLo29J"
ALI_PRODUCTSECRET = "AJpvKX6wWvzayCEd"
ALI_REGION = "cn-shenzhen"

YALI_INSTANCEID = "iot-060a0ccz"
YALI_PRODUCTKEY = "hv9c9A1zjdM"
YALI_PRODUCTSECRET = "Uvp1mLRc4MVGTa2g"
YALI_REGION = "cn-shanghai"

-- Linkta http接口密钥
ACCESS_ID = "d5w3TaOW6fgyvq0K65sdx7yz"
ACCESS_SECRET = "obdHxAt7mMktrATizeOIEtq2BV3IpR"

-- ALI_ACCESS_ID = "LTAI5tBVa21JSnR1tn4C64RZ"
-- ALI_ACCESS_SECRET = "pt7BTPTgGpOL0tp99OnZWxUxFF6pPR"

HW_TOKEN_URL = "https://iot-console.wens.com.cn"
HW_DEVICE_URL = "https://iot-device.wens.com.cn"
HW_IOT_USER = "lzyw"
HW_IOT_PASSWORD = "LZYW@abc123"

HW_PROJECTID = "07ae8a621d684fff93324a7aa7bf057d"
HW_DEV_PRODUCTID = "64a7c7bc9162506e5150c128"

HW_SECRET = "LinktaIot2022"

SUB_DEV_LIST = {
    { type = "E", dev_type = "DFPM93|E", baud = 9600, parity = uart.PAR_NONE, name = "电表" },
    --{ type = "E", dev_type = "DT2Y545", baud = 2400, parity = uart.PAR_EVEN, name = "电表" },
    --{ type = "E", dev_type = "DTS866", baud = 9600, parity = uart.PAR_EVEN, name = "电表" },
    { type = "W", dev_type = "NJSM|W", baud = 9600, parity = uart.PAR_NONE, name = "水表" },
    --{ type = "W", dev_type = "LXSG", baud = 9600, parity = uart.PAR_NONE, name = "水表" },
    --{type = "G", dev_type = "32FC", baud = 9600, parity = uart.PAR_NONE},
    --{type = "G", dev_type = "LXB200", baud = 9600, parity = uart.PAR_NONE},
    --{type = "G", dev_type = "XSFT", baud = 9600, parity = uart.PAR_NONE},
    --{type = "G", dev_type = "GZNY", baud = 9600, parity = uart.PAR_NONE},
    --{type = "G", dev_type = "TJXE", baud = 9600, parity = uart.PAR_NONE},
    --{type = "T", dev_type = "HOSSTEMP", baud = 9600, parity = uart.PAR_NONE},
    { type = "TH", dev_type = "LFH10|TH", baud = 9600, parity = uart.PAR_NONE, name = "温湿度" },
    { type = "THO", dev_type = "LFH52|THO", baud = 9600, parity = uart.PAR_NONE, name = "气象站" },
    --{type = "P", dev_type = "HOSSPRESS", baud = 9600, parity = uart.PAR_NONE},
    { type = "F", dev_type = "MITSUBISHI|F", baud = 9600, parity = uart.PAR_EVEN,name = "变频器" },
    --{type = "L", dev_type = "L-MAG B", baud = 9600, parity = uart.PAR_NONE},
    --{type = "L", dev_type = "XSJDL", baud = 9600, parity = uart.PAR_EVEN},
    { type = "CO2", dev_type = "LFG201|CO2", baud = 9600, parity = uart.PAR_NONE, name = "CO2" },
    { type = "FAN", dev_type = "RSD-16|FAN", baud = 9600, parity = uart.PAR_NONE, name = "风机监测" }
}

HW_ENV_PRODUCT_KEY = "60c9c4318617c10d344ba51d"
HW_ELECT_PRODUCT_KEY = "643f33786bdaeb1e50ab33ea"






